package llama.util;

/**
 * This class will hold an object and an enum explaining what the message is holding and why.
 * The class is supposed to be sent in-house.
 */
public class SystemMessage {

	public enum Type {
		NETWORK_UNAVAILABLE,
		SHOW_SEARCH_WINDOW,
		CONNECTED, 
		SELECT_CONVERSATION,
		CLOSE_CONVERSATION,
		BACK_TO_CONTACT_LIST,
		UPDATE_LOGIN_SETTINGS, 
		SHOW_CONTACT_INFO,
		LOGOUT
	}
	
	private Object object;
	private Type type;
	
	public SystemMessage(Object obj, Type type) {
		this.object=obj;
		this.type=type;
	}
	
	public Object getObject() {
		return object;
	}
	
	public Type getType() {
		return type;
	}
}

